package com.example.easytts.repository

import com.example.easytts.model.VideoTask
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository

@Repository
interface VideoTaskRepository : JpaRepository<VideoTask, Long> {
    fun findByTaskId(taskId: String): VideoTask?
    fun findByUserIdOrderByCreatedAtDesc(userId: Long): List<VideoTask>
}
